package com.hanqi.service.impl;

import com.hanqi.entity.SysUserRole;
import com.hanqi.dao.SysUserRoleMapper;
import com.hanqi.service.SysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zjk
 * @since 2019-04-27
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements SysUserRoleService {

    @Override
    public boolean insertUserRoleAuth(String userId, String roleId) {
        return baseMapper.insertUserRoleAuth(userId, roleId);
    }

    @Override
    public boolean removeUserRoleAuth(String userId, String roleId) {
        return baseMapper.removeUserRoleAuth(userId, roleId);
    }
}
